{% extends "app1/base.html" %}
{% load myfilters %}

{% block title %}Book list{% endblock %}

{% block content %}

<p>
total: {{ total }} book{{ total|pluralize }} <br>
number: {{ "1234"|rev }}
</p>
{% if books %}
<ul>
{% for book in books %}
  <li><a href="{% url 'app1:detail' book.pk %}">{{ book.name|upper }}</a></li>
{% endfor %}
{% endif %}

{% endblock %}
